#ifndef __BUZZER_H__
#define __BUZZER_H__ 
#include "main.h"
#include <stdbool.h>

#define BUZZER_PIN TIM15->CCR1

typedef struct {
	bool Buzzer_Flag;
	uint8_t Buzzer_Cnt;
	uint8_t Buzzer_delay;
	uint8_t Buzzer_Buf;
	
}buzzer_;

extern buzzer_ sys_Buzzer;

void Buzzer_Init(void);
void Buzzer_On(void);
void Buzzer_Off(void);

void buzzer_CaoZuo(buzzer_* buzzer);
void Buzzer_On_(buzzer_* buzzer,uint16_t delay,uint8_t cnt);

#endif
